<?php
	// Mengambil variabel dari Session
	$IdKaryawan = $_SESSION['IdKaryawan'];

	// Mengambil data surat yang akan disahkan
		$DataKaryawan = mysql_query("SELECT * FROM d_karyawan 
														WHERE 
														id_karyawan = '$IdKaryawan'");
		$Data = mysql_fetch_array($DataKaryawan);
		$a=$Data['ket_email'];
		if($a == "en")
		{
		$option1="<input type='radio' name='Setting' value='Enable' checked> Enable";
		$option2="<input type='radio' name='Setting' value='Disable'> Disable";
		}
		elseif($a == "ds")
		{
		$option1="<input type='radio' name='Setting' value='Enable'> Enable";
		$option2="<input type='radio' name='Setting' value='Disable' checked> Disable";
		}
		
	// Menampilkan query Surat yang akan disahkan
	echo 	"
			<form method='post' action='proses.php'>
			<table border=2 cellpadding=3 width=500>
			<tr>			
					<td colspan=3 align='center'><h3>Setting Email</h3></td>			
			</tr>			
			<tr>			
					<td>$option1</td>
					<td>$option2</td>
					<td><input type='submit' name='HasilSetting' value='Ok'></td>			
			</tr>
			<tr>
			<td colspan=3>
			<p>*Enable  : Anda setuju bila kami mengirimi informasi pengajuan cuti ke email anda</p>
			<p>*Disable : Anda menghentikan proses pengiriman informasi pengajuan cuti ke email anda</p>
			</td>
			</tr>			
			</table>
			</form>
			<br>
			<br>
			
				<form id=identitasForm method=post action='proses.php'>
				<table border=1 cellpadding=3 width=520>		
				<tr>			
					<td colspan=2 align='center'><h3>Ganti Password</h3></td>			
				</tr>	
				<tr>
				<td>Password</td>
				<td><input type='password' size=32 id='Password' name='Password' class='required' minlength='2'></td>
				</tr>
				<tr>
				<td>Ulangi Password</td>
				<td><input type='password' size=32  name='UlangiPassword' class='required ' equalTo='#Password'></td>
				</tr>
				<tr>
				<td colspan=2 align='center'>
					<input type=hidden name='GantiPassword' value='Kirim'>
					<input type='submit' name='GantiPassword' value='Kirim'></td>
				</tr>						
				</table>
				</form>
			";
?>